package com.gitee.deeround.jdbchelper.in;

import lombok.Data;

@Data
public class SqlParameter {
    private ParameterType parameterType;
    private ParameterDirection parameterDirection;
    private String parameterName;
    private Object value;
    private int dbType;

    public SqlParameter(String parameterName, Object value) {
        this.parameterName = parameterName;
        this.value = value;
        this.parameterType = ParameterType.Object;
        this.parameterDirection = ParameterDirection.Input;
    }

    public SqlParameter(String parameterName, Object value, ParameterType parameterType, ParameterDirection parameterDirection) {
        this.parameterName = parameterName;
        this.value = value;
        this.parameterType = parameterType;
        this.parameterDirection = parameterDirection;
    }
}
